## -*- coding: utf-8 -*-
<%inherit file="/derived/blog/blog_base.html"/>

<div style="padding-bottom: 40px;" id="main">
    <div style="border-bottom: 1px solid #A5CC7A; margin-bottom: 20px;">
        <h3>个人资料</h3>
    </div>
    <table cellspacing="2" cellpadding="2" width="100%">
        <tbody>
            <tr>
                <th width="25%">昵称</th>
                <td>${(not c.userInfo.realName) and u'未知' or c.userInfo.realName}</td>
            </tr>
            <tr>
                <th>文章数量</th>
                <td>${c.blogInfo.postNumber}</td>
            </tr>
            <tr>
                <th>加入时间</th>
                <td>${c.userInfo.createDate}</td>
            </tr>
            <tr>
                <th>最近访问</th>
                <td>${c.userInfo.loginDate}</td>
            </tr>
            <tr>
                <th>来自</th>
                <td>${(not c.userInfo.city) and u'未知' or c.userInfo.city}</td>
            </tr>
            <tr>
                <th>性别</th>
                % if c.userInfo.gender:
        <td><img title="${c.userInfo.gender == 1 and u'男' or u'女'}" src="${h.url_for('/images/icon_minigender_%s.gif'%c.userInfo.gender)}" /></td>
        % else:
        <td>未知</td>
        % endif
            </tr>
            <tr>
                <th>职业</th>
                <td>${(not c.userInfo.vocation) and u'未知' or c.userInfo.vocation}</td>
            </tr>
            <tr>
                <th>行业</th>
                <td>${(not c.userInfo.industry) and u'未知' or c.userInfo.industry}</td>
            </tr>
        </tbody>
    </table>
</div>
